<?
    $chat=$t->laylienhetructuyen();
	$chamsocda=$t->laychamsocda();
	$dichvukhac=$t->laydichvukhac();
?>
<script type="text/javascript">
	jQuery(document).ready(function() {
		$("#menu li:first-child ul").show();
		$("#menu li").mouseover(function(){
			if($(this).find("ul").hasClass("children")){
			  $("#menu li:first-child ul").hide();
			}
			$(this).find("ul").css('display', 'block');
		});
		$("#menu li").mouseout(function(){
			$(this).find("ul").css('display', 'none');
			$("#menu li:first-child ul").show();
		});
	});
</script>
<div class="menu_wrapper">
<ul id="menu">
    <li>
        <a href="#" <?=($view=='')?"class='current'":""?>>Trang chủ</a>
        <ul class="children" >
            <li>
                <span><?
    $str_in = array ( "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun",	"am", "pm",	":"    );
    $str_out = array ( "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy", "Chủ nhật", " phút (sáng)", " phút (chiều)", " giờ "    );
    $time  = gmdate("D, d-m-Y g:i a", time() + 7*3600);
    $time  = str_replace( $str_in, $str_out, $time);
    echo $time;
?></span>
                &nbsp;&nbsp;&nbsp;
                <img style="position: relative; top: 2px;" src="images/ic4.gif" /> 
                Cơ sở: <span><strong>(08) 3962 3348</strong></span>
                &nbsp;
                <img style="position: relative; top: 2px;" src="images/ic4.gif" />
                Hotline: <span><strong>0908686773 - Chị An</strong></span>
                &nbsp;
                <? while($row_chat=mysql_fetch_assoc($chat)){?>
                <a style="display: inline;padding: 0;" href="ymsgr:sendIM?<?=$row_chat['nick_yahoo']?>">
                    <img style="position: relative; top: 5px;" src="http://mail.opi.yahoo.com/online?u=<?=$row_chat['nick_yahoo']?>&amp;m=g&amp;t=2">
                </a>
                &nbsp;
                <? }?>
            </li>
        </ul>
    </li>
     <li>
        <a <?=($view=='tuvan')?"class='current'":""?> href="tu-van.html" class="">Tư vấn</a>
    </li>
     <li>
        <a <?=($view=='chamsocda_all')?"class='current'":""?> href="cham-soc-da.html" class="">Chăm sóc da</a>
        <ul class="children">
            <? while($row_chamsocda=mysql_fetch_assoc($chamsocda)){?>
            <li>
                <a href="<?=$rooturl?>cham-soc-da/<?=$row_chamsocda['id']?>/<?=$t->changeTitle($row_chamsocda['ten_'.$lang])?>.html">
                <?=$row_chamsocda['ten_'.$lang];?>
                </a>
            </li>
            <? }?>
        </ul>
    </li>
     <li>
        <a <?=($view=='quitrinhtrimun')?"class='current'":""?> href="qui-trinh-tri-mun.html" class="">Qui trình trị mụn</a>
    </li>
    <li>
        <a <?=($view=='dichvu_all')?"class='current'":""?> href="dich-vu-khac.html" class="">Dịch vụ khác</a>
        <ul class="children" style="display: none;">
           <? while($row_dichvukhac=mysql_fetch_assoc($dichvukhac)){?>
            <li>
                <a href="<?=$rooturl?>dich-vu-khac/<?=$row_dichvukhac['id']?>/<?=$t->changeTitle($row_dichvukhac['ten_'.$lang])?>.html">
                <?=$row_dichvukhac['ten_'.$lang];?>
                </a>
            </li>
            <? }?>
        </ul>
    </li>
    <li>
        <a <?=($view=='sanpham_all')?"class='current'":""?> href="<?=$rooturl?>san-pham.html" class="">Sản phẩm</a>
    </li>
     <li>
        <a <?=($view=='lienhe')?"class='current'":""?> href="<?=$rooturl?>lien-he.html" class="">Liên hệ</a>
    </li>                                    
</ul>
    <div class="hotnew">        
    </div>
<div style="clear: both;"></div>
<div style="float:right;position:absolute;right:60px;top:14px;">

    <form action="index.php" method="get">
        <input type="hidden" name="view" value="search" />
        <input id="keyword" type="text" name="keyword" style="background:none;border:none;width:170px;" />
        <input type="image" src="images/icon_tim.png" style="position:absolute; top:0px; right:-50px;width:30px;height:20px;" />
    </form>
</div>
</div>
